<script lang="ts" setup>
import XBottom from '@/components/Form/XBottom.vue'
// 接受父组件的值
const {showWechat = true} = defineProps<{ title?: string, modelValue: any, showWechat?: boolean }>()
// 改变modelValue值
defineEmits<{ (e: 'update:modelValue', value: boolean): void }>()

</script>

<template>
    <view class="p-11.5">
        <text v-if="title" text="40 #333333">
            {{ title }}
        </text>
        <slot/>
        <view absolute bottom-32 wfull left-0>
            <XBottom :model-value="modelValue" :show-wechat="showWechat"
                     @update:model-value="$emit('update:modelValue', true)"/>
        </view>
    </view>
</template>
